<?php

namespace App\Services\Core\Store\Kaisen;


/**
*
* 凯森签名加密
*
*/
class KaisenLinkUtil
{


    public static  function getLinkString()
    {

    }


    /**
     *
     * @param $array
     * @return array
     */
    public static function paraFilter($array)
    {
        $result = [];

        if (!is_array($array) || count($array) <= 0)  return $result;

        $result = array_filter($array);

        return $result;

    }




    public static function createLinkString()
    {

    }



    public static function getUrlParams()
    {



    }

    public static function getRandomString($len, $chars=null)
    {
        if (is_null($chars)) {
            $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
        }
        mt_srand(10000000*(double)microtime());
        for ($i = 0, $str = '', $lc = strlen($chars)-1; $i < $len; $i++) {
            $str .= $chars[mt_rand(0, $lc)];
        }
        return $str;
    }

}
